package javax.core.security;


import javax.core.security.entity.credential.AuthCredential;
import javax.core.security.entity.UserAuthentication;
import javax.core.security.exception.AuthenticationException;

/**
 * 登陆鉴权的服务类， {@link #authenticate} 方法为鉴权验证的抽象方法
 */
public interface AuthenticationManager {

    UserAuthentication authenticate(AuthCredential credential)
            throws AuthenticationException;
}
